//
//  BACommentPhotoCell.m
//  YunFu
//
//  Created by Bager on 2018/9/7.
//  Copyright © 2018年 yunfu. All rights reserved.
//

#import "BACommentPhotoCell.h"

@implementation BACommentPhotoCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.backgroundColor = [UIColor whiteColor];
        [self setViews];
    }
    return self;
}

- (void)setViews
{
    [self addSubview:self.img];
}

- (UIImageView *)img
{
    if (!_img)
    {
        _img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, (kScreenWidth - kPublicMargin * 2 - 65) / 4.0, (kScreenWidth - kPublicMargin * 2 - 65) / 4.0)];
        _img.contentMode = UIViewContentModeScaleAspectFill;
        _img.layer.masksToBounds = YES;
    }
    return _img;
}

@end
